-- GENERATED SPELL FOR [Stormforged Soldier] --


function spell0_30136(pUnit, Event) --@Thunder Orb,n/a--
pUnit:FullCastSpellOnTarget(56621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30136', 1000, 1)
end

function spell1_30136(pUnit, Event) --@Thunder Orb,n/a--
pUnit:FullCastSpellOnTarget(56622,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30136', 1000, 1)
end

function Sorts_30136(pUnit, Event)
local choix_sorts_30136 = math.random(0, 1)
if choix_sorts_30136 == 0 then
pUnit:RegisterEvent('spell0_30136', 1, 1)
end
if choix_sorts_30136 == 1 then
pUnit:RegisterEvent('spell1_30136', 1, 1)
end
end

function mob30136_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30136', math.random(1500, 3000), 1)
end

function mob30136_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30136_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30136_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30136, 1, 'mob30136_Action')
RegisterUnitEvent(30136, 2, 'mob30136_Leave')
RegisterUnitEvent(30136, 3, 'mob30136_Kill')
RegisterUnitEvent(30136, 4, 'mob30136_Die')
